package com.whd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@MapperScan("com.whd.dao") //扫描dao路径
@ServletComponentScan   ////配置druid必须加的注解。filter和servlet、listener需要单独进行注册才能使用，spring boot里面提供了该注解起到注册作用
@EnableTransactionManagement //开启事务
public class RzSpringbootApplication {

    public static void main(String[] args) {
        SpringApplication.run(RzSpringbootApplication.class, args);
    }

}
